
#ifndef _ISO7816_UTILS_H_
#define _ISO7816_UTILS_H_

#define max(a, b) (((a) > (b)) ? (a) : (b))
#define min(a, b) (((a) < (b)) ? (a) : (b))
#define SIZE_OF_ARRAY(a) (sizeof(a)/sizeof((a)[0]))


uint16_t convert_fi_code_to_value(uint8_t fi_code);
uint8_t convert_di_code_to_value(uint8_t di_code);
uint8_t reverse_byte(uint8_t ch);


#endif
